home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK1.toast / Development Kits (Disc 1) / QuickDraw GX / Programming Stuff / Sample Code / Printing Samples / Printer Drivers… / LaserWriterIIsc (New GX v1.1) / OldAPIMessageIntf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-20  |  2.4 KB  |  71 lines  |  [TEXT/MPS ]

  1. /* ------------------------------------------------------------------------------
  2. FILENAME
  3.     OldAPIMessageIntf.h
  4.  
  5. DESCRIPTION
  6.     This module contains contants and types which are specifically used by the
  7.     OldAPIMessageIntf.c file.  That file implements the LaserWriter SC's old
  8.     API messages.
  9.     
  10. COPYRIGHT
  11.      Copyright Apple Computer, Inc. 1988-1992
  12.      All rights reserved. 
  13.     
  14. -------------------------------------------------------------------------------- */
  15.  
  16. #ifndef __OLDAPIMESSAGEINTF__
  17. #define __OLDAPIMESSAGEINTF__
  18.  
  19.  
  20. /*********************************************************************************
  21.  *                                            CONSTANTS                                                *
  22.  *********************************************************************************/
  23.  
  24. // Miscellaneous constants
  25. enum
  26. {
  27.     kMysticPaperFract                = 120,    // Paper sizes in PREC 3 are expressed as multiples of 120 
  28.     kLetterRowBytes                = 300,    // Bitmap rowBytes for US Letter paper: 8" printing width     
  29.     kLegalRowBytes                    = 252,    // Bitmap rowBytes for US Legal paper: 6.72" printing width    
  30.     
  31.     oldLWSCPrintRecordVersion    = 3,        //    This is the print record version supported by the last non-QuickDraw GX based LaserWriter SC driver
  32.  
  33.     oldPRECAutoFeed                = 1,        //    Old SC driver auto-feed setting constant
  34.     oldPRECManualFeed                = 0        //    Old SC driver manual feed setting constant
  35. };
  36.  
  37. // Useful bit numbers in the print record 
  38. enum
  39. {
  40.     kTextSmoothingBit        = (1 << 0),    // bit0
  41.     kScale75Bit                = (1 << 2),    // bit2
  42.     kScale50Bit                = (1 << 3),    //    bit3
  43.     kExactBitBit            = (1 << 4),    //    bit4
  44.     kDevResBit                = (1 << 5),    //    bit5
  45.     kDraftBitsBit            = (1 << 6),    //    bit6
  46.     kScale25Bit                = (1 << 7),    //    bit7
  47.     kAbortChkBit            = (1 << 8),    //    bit8
  48.     kGrayScaleBit            = (1 << 9),    //    bit9
  49.  
  50.     kPortraitBit            = (1 << 1)    //    bit1, in wDev - rest are in iFlags 
  51. };
  52.  
  53.     
  54. /*********************************************************************************
  55.  *                                            DEFINES                                                    *
  56.  *********************************************************************************/
  57.  
  58. // TestBit - for testing a masked bit 
  59.  
  60. #define TestBit(i, bit)        (((i) & (bit)) == (bit))
  61.  
  62.  
  63. /*********************************************************************************
  64.  *                                    FORWARD DECLARATIONS                                            *
  65.  *********************************************************************************/
  66.  
  67. OSErr    SD_PrValidate(THPrint hPrint, Boolean *wasChanged);
  68. OSErr SD_ConvertPrintRecordTo(THPrint hPrint);
  69. OSErr SD_ConvertPrintRecordFrom(THPrint hPrint);
  70.  
  71. #endif __OLDAPIMESSAGEINTF__